package com.itheima.ydd.common;


import lombok.Data;

@Data
public class MyPage {
    //总条数
    private Long count;
    //总页数
    private Long totalPages;
    //每页条数
    private Long pageSize;
    //当前页码
    private Long currentPage;
    //查询的数据
    private Object data;

    public MyPage() {
    }

    public MyPage(Long count, Long totalPages, Long pageSize, Long currentPage, Object data) {
        this.count = count;
        this.totalPages = totalPages;
        this.pageSize = pageSize;
        this.currentPage = currentPage;
        this.data = data;
    }
}
